Smush\Core\Webp\Webp_Controller S

Total Complexity 41
Dependencies 11
Dependents 1
Total lines 284
Lines of code 185
Logical lines of code 90
Comment lines 42
Methods 17
Properties 7

Methods 17

Method Rating Maintainability Complexity Lines of code
ajax_switch_webp_method()
S
55 4 20
ajax_webp_toggle()
S
57 4 16
ajax_apply_htaccess_rules()
S
63 4 10
ajax_get_server_configuration_status()
S
63 4 10
ajax_delete_all_webp_files()
S
60 3 14
__construct()
S
46 1 42
delete_webp_versions_before_delete()
S
64 3 10
ajax_toggle_wizard()
S
70 3 6
maybe_enqueue_fallback_js()
S
63 2 12
maybe_mark_global_stats_as_outdated()
S
68 2 7
delete_webp_versions_on_restore()
S
67 2 8
delete_webp_version()
S
71 2 6
delete_webp_versions_of_pngs()
S
71 2 6
maybe_revert_lock_file_on_delete_webp_files()
S
75 2 5
add_webp_global_stats()
S
76 1 4
add_webp_optimization()
S
73 1 5
add_webp_transform()
S
76 1 4